
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_ui/src/components/formControls/ChineseCupertinoLocalizations.dart';
import 'package:flutter_ui/src/theme/theme.dart';
import 'src/pages/tabs/tabs-page.dart';

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  static BuildContext rootContext;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeDataExt.getTheme(),
      localizationsDelegates: [
        ChineseCupertinoLocallizations.delegate,
        DefaultCupertinoLocalizations.delegate,
      ],
      supportedLocales: [
        const Locale('en', 'US'),
        const Locale('zh', 'CN'),
      ],
      initialRoute: '/',
      routes: {
        "/": (BuildContext context) {
           return TabsPage();
        },
      },
    );
  }
}